package org.idea.spring.datasource.ibernate.dao;

import org.idea.spring.datasource.bean.User;
import org.idea.spring.datasource.ibernate.ISelect;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author linhao
 * @Date created in 3:48 下午 2021/5/17
 */
@Component
public interface UserDao {

    @ISelect("select * from t_user")
    List<User> findAll();

    @ISelect("select * from t_user limit 1")
    User findOne();
}
